package master.system.function;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import master.support.DomainObject;

/**
 * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
 */
@Table(name="sys_module")
public class Module extends DomainObject {

	// 模块名称
	@NotNull
	@Column(name="NAME")
    private String name;

	// 父亲ID
	@Column(name="PARENT_ID")
    private long parentId;
    
	// URL
	@Column(name="URL")
    private String url;
    
    // ICON
	@Column(name="ICON")
    private String icon;
    
    // 排序用，数值小，排序在前
	@Column(name="PRIORITY")
    private int priority;
    
    // 描述
	@Column(name="DESCRIPTION")
    private String description;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getParentId() {
        return parentId;
    }

    public void setParentId(long parentId) {
        this.parentId = parentId;
    }

    public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
